
angular.module('EmailApp')
    .controller("OutboxCtrl", function($scope, EmailService) {
        $scope.messages = EmailService.getOutgoingEmails();
        this.title = "Out box";
        console.log($scope.messages)
    })